<?php $this->pageTitle=Yii::app()->name; ?>

<div class="ui-state-default ui-corner-all icon" id="createNoteBtn">
    <span class="ui-icon ui-icon-plus"></span>
</div>

<?php if(!empty($notes)): ?>
    <?php foreach($notes as $n): ?>
    <?php $this->renderPartial('/note/note', array('Note'=>$n)); ?>
    <?php endforeach; ?>
<?php endif; ?>

<?php $this->renderPartial('noteForm'); ?>